package org.ysu.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import org.ysu.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 走访记录表
 * </p>
 *
 * @author LiuJunDa
 * @since 2024-08-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Interview对象", description = "走访记录表")
public class Interview extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public Interview(Long fId, LocalDate time, String riskType, String riskRemark, BigDecimal income, BigDecimal liability, String suggestion, String detail, String photo) {
        this.fId = fId;
        this.time = time;
        this.riskType = riskType;
        this.riskRemark = riskRemark;
        this.income = income;
        this.liability = liability;
        this.suggestion = suggestion;
        this.detail = detail;
        this.photo = photo;
    }

    public Interview(Long id, Long fId, LocalDate time, String riskType, String riskRemark, BigDecimal income, BigDecimal liability, String suggestion, String detail) {
        super(id);
        this.fId = fId;
        this.time = time;
        this.riskType = riskType;
        this.riskRemark = riskRemark;
        this.income = income;
        this.liability = liability;
        this.suggestion = suggestion;
        this.detail = detail;
    }

    @ApiModelProperty("乡村干部id")
    private Long vcId;

    @ApiModelProperty("贫困户id")
    private Long fId;

    @ApiModelProperty("走访日期")
    private LocalDate time;

    @ApiModelProperty("风险类型")
    private String riskType;

    @ApiModelProperty("风险备注")
    private String riskRemark;

    @ApiModelProperty("年收入")
    private BigDecimal income;

    @ApiModelProperty("债务")
    private BigDecimal liability;

    @ApiModelProperty("意见与建议")
    private String suggestion;

    @ApiModelProperty("交谈详细")
    private String detail;

    @ApiModelProperty("配图")
    private String photo;


}
